<?php
/**
 *
 * @package    opensocial
 * @subpackage activity
 * @author     Daniel Botelho <botelho.daniel@gmail.com>
 * @link http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial.Activity.Field.html
 * @see OSEnvironment::supportsActivity()
 */
class OSActivityMediaItem
{ 
  const ACTIVITYMEDIAITEM_CLASS = 'opensocial.Activity.MediaItem';

  // nome da variável da actividade
  private $activityMediaItem_var;
  
  // nome da variável dos parametros da actividade
  private $activityMediaItemParams_var;
  //private $activityMediaItemParams = array();

  // o tipo deste MediaItem
  private $type;
  private $url;


  function __construct($activityMediaItem_var)
  {
    $this->activityMediaItem_var = $activityMediaItem_var;
    //$this->activityMediaItemParams_var = $activityMediaItem_var.'_params';
  }

  public function getActivityMediaItemVarName(){ return $this->activityMediaItem_var; }
  //public function getActivityMediaItemParamsVarName(){ return $this->activityMediaItemParams_var; }
  //public function getActivityMediaItemParams(){ return $this->activityMediaItemParams; }
  
  public function setAudioItem() { $this->type = OSActivityMediaItemType::AUDIO; }
  public function setVideoItem() { $this->type = OSActivityMediaItemType::VIDEO; }
  public function setImageItem() { $this->type = OSActivityMediaItemType::IMAGE; }

  public function setUrl($url) { $this->url = $url; }

  public function getType() { return $this->type; }
  public function getURL() { return $this->url; }
}
